<div class="container">
    <div class="section" id="mysec">

        <div class="row">
            <div class="col s12">
                <div class="card-panel">
                    <div class="">
                        <h4 class="center-align">{$res.title}</h4>
                        <div class="left" style="color: gray">发布时间：<span
                                class="mui--divider-right">{:date("Y-m-d",$res["addtime"])}&nbsp;</span>&nbsp;报名人数：<span>{:sumPeo($res['enid'],$res['enclass'])}/{$res.num}</span>
                        </div>
                        <div class="right">报名截止时间：<span
                                class="center-aligne" style="color: red">{:date("Y-m-d",$res["start"])}~{:date("Y-m-d",$res["end"])}</span>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="valign">
                        <p style="line-height: 26px">&emsp;&emsp;
                            {$res.content}</p>
                    </div>
                    <div class="center">
                        <if condition="sumPeo($vo['enid'],$vo['enclass']) lt $vo['num'] ">
                            <if condition="time() lt strtotime($res['end']) "><a
                                    class="waves-effect waves-light btn red"
                                    href="{:U('Stuform/index',array('title'=>$res['title']))}">报名</a>
                                <else/>
                                <a class="waves-effect waves-light btn disabled red">报名已过期</a>
                            </if>
                            <else/>
                            <a class="waves-effect waves-light btn disabled red">报名已满</a>
                        </if>
                    </div>
                    <div class="row">
                        <div class="right">
                            <a href="javascript:history.back(-1)">返回上一页</a>
                        </div>
                    </div>
                    <div class="clearfix"></div>


                </div>
            </div>
        </div>
    </div>
</div>

